/**
 * Handle changed data.
 *
 * @param {Object} oldValue old value
 * @param {Object} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"56CF2B16-05DC-45E3-BE02-1ECD71D3C728"}
 */
function onDataChange_importe(oldValue, newValue, event) 
{
	if(rec_detalle_retencion_to_tab_mov_cl.ing_brutos==1)
	{
		elements.prov_ing_brutos.enabled=true;	
		elements.prov_ing_brutos.requestFocus(true);
	}
	return true
}

/**
 * Handle changed data.
 *
 * @param {Object} oldValue old value
 * @param {Object} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"94FE2CF0-46D0-4479-B067-DDE6D5E67A0B"}
 */
function tot_retenciones(oldValue, newValue, event) 
{
	globals.gtotal_retenciones = 0;
	for ( var i = 1 ; i <= controller.getMaxRecordIndex(); i++ )
	{
		controller.setSelectedIndex(i);
		globals.gtotal_retenciones += importe;
  	}
  	globals.grecibo_diferencia(); //29/09/2010
  	return true	
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"BC0DF3F2-3DED-4F79-9A7C-C79699463880"}
 */
function retencion_elegida(event) 
{
	// define la provincia para retenciones de Ingresoos Brutos
	// se asume que e codigo de mov de ctacte es 50 + el cod de pcia
	if(rec_detalle_retencion_to_tab_mov_cl.ing_brutos!=1)
		{
			prov_ing_brutos=null;
		}
	else
		{
			prov_ing_brutos=rec_detalle_retencion_to_tab_mov_cl.ctacte_mov_cl_id - 50
		}
}
